#include<stdio.h>
#include<time.h>
#include<stdlib.h>
int main()
{
	int a,b,i;
	srand((int)time(NULL));
	a=rand()%50;
	printf("I have a number between 1-50.\n");
	printf("Can you guess what it is?\n");
	printf("Enter your initial guess.");
	char retry;
	do
	{
		scanf("%d",&b);
		if(6==b)
		{
			printf("Correct! That's the number.\n ");
			printf("Would you like to play it again(y or n)?\n");
			retry=getchar();
		}
		else
		{
			break;
		}

	}
	while(retry=='Y');
	return 0;
}

